﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SaleManagement.Entity;
using SaleManagement.Model;

namespace SaleManagement.Services.Mapping
{
   public class ProductDetailMapping
    {
 public static ProductDetail ConvertToEntity( ViewModelProductDetail model)
       {
           ProductDetail entity = new ProductDetail();
           entity.Id = model.Id;
           entity.Name = model.Name;
           entity.LanguageId = model.LanguageId;
           entity.ProductId = model.ProductId;
           entity.UnitPrice = model.UnitPrice;
           entity.Detail = model.Detail;
           return entity;
       }
    }
}
